package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.SelfShopCouponMapper;
import com.base.po.voip.SelfShopCoupon;
import com.base.po.voip.SelfShopCouponExample;
import com.base.service.SelfShopCouponService;
import com.base.utils.Page;

@Service("selfShopCouponService")
public class SelfShopCouponServiceImpl implements SelfShopCouponService{
	
	@Autowired
	private SelfShopCouponMapper selfShopCouponMapper;

	@Override
	public int countByExample(SelfShopCouponExample example) {
		
		return selfShopCouponMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(SelfShopCouponExample example) {
		
		return selfShopCouponMapper.deleteByExample(example);
	}

	@Override
	public int insert(SelfShopCoupon record) {
		
		return selfShopCouponMapper.insert(record);
	}

	@Override
	public int insertSelective(SelfShopCoupon record) {
		
		return selfShopCouponMapper.insertSelective(record);
	}

	@Override
	public List<SelfShopCoupon> selectByExample(SelfShopCouponExample example) {
		
		return selfShopCouponMapper.selectByExample(example);
	}

	@Override
	public int updateByExampleSelective(SelfShopCoupon record,
                                        SelfShopCouponExample example) {
		
		return selfShopCouponMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SelfShopCoupon record, SelfShopCouponExample example) {
		
		return selfShopCouponMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SelfShopCoupon record) {
		
		return selfShopCouponMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public SelfShopCoupon selectByCoupon(String coupon, String parentid, String shopid) {
		
		return selfShopCouponMapper.selectByCoupon(coupon, parentid, shopid);
	}

	@Override
	public List<SelfShopCoupon> selectAllSelfShopCoupon(Page page, String parentid, String shopid, String batch,
			String mobile, Byte status) {
		
		return selfShopCouponMapper.selectAllSelfShopCoupon(page, parentid, shopid, batch, mobile, status);
	}

	@Override
	public int countAllSelfShopCoupon(String parentid, String shopid, String batch, String mobile, Byte status) {
		
		return selfShopCouponMapper.countAllSelfShopCoupon(parentid, shopid, batch, mobile, status);
	}

	@Override
	public List<SelfShopCoupon> selectBySelfShopCoupon(String parentid, String shopid, String batch) {
		
		return selfShopCouponMapper.selectBySelfShopCoupon(parentid, shopid, batch);
	}

}
